package com.sx.code.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author shengx
 * @date 2020/5/10 22:57
 */
@FeignClient(name = "service-email")
@RequestMapping("/email")
public interface EmailFeignClient {
    @GetMapping("/{email}/{code}")
    Boolean email(@PathVariable String email, @PathVariable String code);
}
